package com.gyp.model.common;

/**
 * @Description 单据状态枚举值
 * @Author Lisheng Gong
 * @Date 2022/7/20 13:57
 */
public enum EntityStatusCode implements IEntityStatusCode{
    SNAPSHOT(1,"是快照形式"),
    UN_SNAPSHOT(0,"不是快照，正常数据"),
    //单据审核状态
    UN_SUBMIT(101, "保存未提交"),
    SUBMIT(102, "已提交待审核"),
    AUDIT(103, "审核通过"),
    UN_AUDIT(104, "审核未通过"),

    INVALID(105,"已过期"),

    UN_LIMIT(0,"正常无限制"),

    LIMIT(1,"限制"),

    UPDATE(201,"修改操作"),

    CONTACT_STATUS_ONLINE(1, "合同生效状态"),

    CONTACT_STATUS_NOT_ONLINE(0, "合同不生效状态"),

    ;

    final int code;
    final String msg;


    EntityStatusCode(int code,String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.getMsg();
    }
}
